<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
	
	<h:head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	</h:head>		
	
	<h:body>
		<ui:composition template="/WEB-INF/facelets/template.xhtml">	
		<ui:define name="body">	
		<f:view>
			<p:ajaxStatus onstart="statusDialog.show();" onsuccess="statusDialog.hide();"/>               
			<p:dialog modal="true" widgetVar="statusDialog" header="Loading"  draggable="false" closable="false">  
   				<p:graphicImage value="#{facesContext.externalContext.request.scheme}://#{facesContext.externalContext.request.serverName}:#{facesContext.externalContext.request.serverPort}#{facesContext.externalContext.request.contextPath}/images/ajaxloadingbar.gif" />   
			</p:dialog>
			<h:form id="formDialog">
				<p:messages id="msg" />
				<p:growl id="men"/>
					<p:panel id="panelParametrosPqr" header="Parametros PQRS">							
						<h:panelGrid columns="2" id="panelGrid" >
						
						
						
						
						<h:outputText id="msgEstadoRegistro" value="* Estado:"/>
						<p:selectOneMenu id="estado" binding="#{parametrosPqrView.estado}"
						value="#{parametrosPqrView.estadoRegistro}"  required="true"   requiredMessage="El estado es requerido"  >
						<f:selectItem itemLabel="Seleccione" itemValue="" />
						<f:selectItem itemLabel="APROBADO" itemValue="A" />
						<f:selectItem itemLabel="RECHAZADO" itemValue="R" />
					</p:selectOneMenu>
							
												 	
																		
													<h:outputText id="msgDescripcionParam" value="* Descripción:    "/>
							<p:inputTextarea id="txtDescripcionParam" rows="10" cols="100" binding="#{parametrosPqrView.txtDescripcionParam}" required="true"   requiredMessage="La descripción es requerida"   />
							
													 
													<h:outputText id="msgValorParam" value="* Valor:        "/>
							<p:inputTextarea id="txtValorParam" rows="10" cols="180" binding="#{parametrosPqrView.txtValorParam}"  counterTemplate="{0}"  counter="display" maxlength="4000" autoResize="false"  required="true"   requiredMessage="El Valor es requerido"      />
							<h:outputText id="display"  />
							
							
							
												
											
																	   </h:panelGrid>
				</p:panel>
	   			<p:panel id="panelBotones">
					<div align="center">					
						<p:commandButton id="btnSave" binding="#{parametrosPqrView.btnSave}"  value="Guardar" action="#{parametrosPqrView.action_save()}" update="panelParametrosPqr,msg,panelBotones" />
						<p:commandButton id="btnDelete" binding="#{parametrosPqrView.btnDelete}" disabled="true" value="Eliminar" action="#{parametrosPqrView.action_delete_master()}" onclick="if(!confirm('Do you really want to delete this Entry?')){return false;}" update="panelParametrosPqr,msg,panelBotones" />
						<p:commandButton id="btnClear" value="Limpiar" action="#{parametrosPqrView.action_clear()}"  update="panelParametrosPqr,msg,panelBotones" />
					</div>
				</p:panel>			
			</h:form>
		</f:view>
			</ui:define>		
		</ui:composition>	
	</h:body>	
</html>	